<template>
  <div>
    <h1>选择喜欢的</h1>
    <h4>爱好</h4>
    <input type="checkbox" value="神" v-model="hobby" />Michael Jordan
    <input type="checkbox" value="皇" v-model="hobby" />LeBron James
    <input type="checkbox" value="魔" v-model="hobby" />Earvin Johnson
    <input type="checkbox" value="佛" v-model="hobby" />Tim Duncan
    <input type="checkbox" value="鲨" v-model="hobby" />Shaquille O'Neal
    <input type="checkbox" value="死神" v-model="hobby" />Kevin Durant
    <input type="checkbox" value="三分王" v-model="hobby" />Stephen Curry
    <ul>
      <li v-for="(item, index) in hobby" :key="index">{{ item }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      hobby: [],
    };
  },
};
</script>

<style>
</style>